package cn.iocoder.yudao.module.nmkj.controller.admin.newscontent.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import javax.validation.constraints.*;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 新闻内容新增/修改 Request VO")
@Data
public class NewsContentSaveReqVO {

    @Schema(description = "新闻ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "13305")
    private Long id;

    @Schema(description = "新闻标题", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "新闻标题不能为空")
    private String title;

    @Schema(description = "新闻内容", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "新闻内容不能为空")
    private String content;

    @Schema(description = "新闻时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "新闻时间不能为空")
    private LocalDateTime newsTime;

    @Schema(description = "状态")
    private Integer status;

}